const {
  defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:1888', //启用代理
        changeOrigin: true,  // 前端代理允许跨域
        pathRewrite: {
          '^/api': ''
        },
      },
    }
  }
})